<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="#{request.contextPath}/configuracoes/visualizacao/padrao/layout.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="logo">
        Cadastro Evento
    </ui:define>

    <ui:define name="menu">

    </ui:define>

    <ui:define name="conteudo">
        <h:form>
            <h:outputText value="#{eventoBean.evento.key}"/>
            <p:panel header="Cadastro Evento">
                <h:panelGrid columns="2">
                    <h:outputText value="Titulo do Evento"/>
                    <p:inputText size="50" value="#{eventoBean.evento.titulo}"/>
                </h:panelGrid>
                <f:metadata>
                    <f:viewParam name="evento" value="#{eventoBean.evento.key}"/>
                </f:metadata>
                <h:panelGrid columns="2">
                    <p:commandButton value="Salvar" action="#{eventoBean.salvar}"/>
                </h:panelGrid>
            </p:panel>
        </h:form>
    </ui:define>

    <ui:define name="creditos">
        creditos
    </ui:define>

</ui:composition>
